package com.collect.cameroon.zhiBean.zhiReceive;

import com.collect.cameroon.zhiGlobal.zhiAppSettings.ZHIProjectConfigs;
import com.collect.cameroon.zhiUtils.StringUtil;

import java.io.Serializable;

public class ZHIRDsEntity_old implements Serializable {
    /** 产品 */
    private String appName;
    /** 下载地址 */
    private String appLink;
    /** 期限 */
    private String days;
    /** 借款金额 */
    private String principal;
    /** 到账金额 */
    private String realAmount;
    /** 利息 */
    private String interest;
    /** 服务费 */
    private String serviceFee;
    /** 还款金额 */
    private String repayAmount;
    /** 还款日期 */
    private String repayTime;
    /** 姓名 */
    private String fullName;
    /** 手机号 */
    private String mobile;
    /** 单号 */
    private String orderId;

    public String getAppName() {
        return StringUtil.safeString(appName);
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppLink() {
        return StringUtil.safeString(appLink).trim();
    }

    public void setAppLink(String appLink) {
        this.appLink = appLink;
    }

    public String getDays() {
        return StringUtil.safeString(days);
    }

    public void setDays(String days) {
        this.days = days;
    }

    public String getPrincipal() {
        return StringUtil.safeString(principal);
    }

    public String getPrincipalFormat() {
        return StringUtil.numberTothousandFormatter(getPrincipal()) + " " + ZHIProjectConfigs.CURRENCY_FLAG;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getRealAmount() {
        return StringUtil.safeString(realAmount);
    }

    public String getRealAmountFormat() {
        return StringUtil.numberTothousandFormatter(getRealAmount()) + " " + ZHIProjectConfigs.CURRENCY_FLAG;
    }

    public void setRealAmount(String realAmount) {
        this.realAmount = realAmount;
    }

    public String getInterest() {
        return StringUtil.safeString(interest);
    }

    public String getInterestFormat() {
        return StringUtil.numberTothousandFormatter(getInterest()) + " " + ZHIProjectConfigs.CURRENCY_FLAG;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public String getServiceFee() {
        return StringUtil.safeString(serviceFee);
    }

    public String getServiceFeeFormat() {
        return StringUtil.numberTothousandFormatter(getServiceFee()) + " " + ZHIProjectConfigs.CURRENCY_FLAG;
    }

    public void setServiceFee(String serviceFee) {
        this.serviceFee = serviceFee;
    }

    public String getRepayAmount() {
        return StringUtil.safeString(repayAmount);
    }

    public String getRepayAmountFormat() {
        return StringUtil.numberTothousandFormatter(getRepayAmount()) + " " + ZHIProjectConfigs.CURRENCY_FLAG;
    }

    public void setRepayAmount(String repayAmount) {
        this.repayAmount = repayAmount;
    }

    public String getRepayTime() {
        return StringUtil.safeString(repayTime);
    }

    public void setRepayTime(String repayTime) {
        this.repayTime = repayTime;
    }

    public String getFullName() {
        return StringUtil.safeString(fullName);
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getMobile() {
        return StringUtil.safeString(mobile).trim();
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getOrderId() {
        return StringUtil.safeString(orderId);
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getDaysFormat() {
        return StringUtil.safeString(days) + " journées";
    }
}
